import 'package:flutter_deer/database/beans/shift/current_shift_entity.dart';
import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/turn_orver_bean.g.dart';

@JsonSerializable()
class ConfirmHandOverBean {
  String actualAmount = '';
  String discountAmount = '';
  String endTime = '';
  String merchantWorkCycleId = '';
  String nowDateTime = '';
  String headUserName = '';
  String orderCount = '';
  String newWorkCycleCode = ''; //订单数
  String receivableAmount = ''; //新班次
  String startTime = '';  //应收金额(元)
  String workCycleCode = '';  //班次开始时间
  int workCycleStatus = 0;  //班次(展示)状态 1：未交班 2：已交班

  String energyOrderGoodsQuantity = '';
  String onlinePaymentAmount = '';
  List<String> energyOrderIds = [];
  List<String> energyOrderPayingIds = [];

  ConfirmHandOverBean();

  factory ConfirmHandOverBean.fromJson(Map<String, dynamic> json) => $ConfirmHandOverBeanFromJson(json);
  Map<String, dynamic> toJson() => $ConfirmHandOverBeanToJson(this);
}

@JsonSerializable()
class HandOverBean {
  CurrentShiftEntity? newMwc;
  CurrentShiftEntity? oldMwc;

  HandOverBean();

  factory HandOverBean.fromJson(Map<String, dynamic> json) => $HandOverBeanFromJson(json);
  Map<String, dynamic> toJson() => $HandOverBeanToJson(this);
}

